//
//  XZHHomeCollectionViewCell.m
//  Piece
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "XZHHomeCollectionViewCell.h"
#import "XZHHomeTableView.h"

@implementation XZHHomeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.tableView = [[XZHHomeTableView alloc] initWithFrame:self.bounds];
        [self.contentView addSubview:self.tableView];
    }
    return self;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
}

- (void)setModel:(XZHHomeModel *)model
{
    if (_model != model) {
        _model = model;
    }
    self.tableView.model = model;
    self.tableView.homeVC = self.homeVC;
}

@end
